package com.fafi.selfmvc.vo;

import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class Goods {
	private String gname;
	private String gdescription;
	private double gprice;
	//日期格式化（需要在配置文件中配置FormattingConversionServiceFactoryBean
	//默认DateTimeFormatAnnotationFormatterFactory
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date gdate;

	private BigDecimal bprice;
	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	public String getGdescription() {
		return gdescription;
	}

	public void setGdescription(String gdescription) {
		this.gdescription = gdescription;
	}

	public double getGprice() {
		return gprice;
	}

	public void setGprice(double gprice) {
		this.gprice = gprice;
	}

	public Date getGdate() {
		return gdate;
	}

	public void setGdate(Date gdate) {
		this.gdate = gdate;
	}

	public BigDecimal getBprice() {
		return bprice;
	}

	public void setBprice(BigDecimal bprice) {
		this.bprice = bprice;
	}
}
